from django.urls import path
from . import views

app_name = 'movies'  # 命名空间：用于区分不同app的url，方便url的反向解析
urlpatterns = [
    path('list/', views.movie_list, name='movie_list'),
    path("detail/<int:pk>/", views.movie_detail, name='movie_detail'),
    path("year/2025", views.movie_year, {'year': 2025}, name='movie_year')
]
